	.file	1 "merger.c"
	.section .mdebug.abi32
	.previous
	.abicalls
	.text
	.align	2
	.globl	extraerCampo2
	.ent	extraerCampo2
extraerCampo2:
	.frame	$fp,56,$31		# vars= 16, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$25
	.set	reorder
	subu	$sp,$sp,56
	.cprestore 16
	sw	$31,48($sp)
	sw	$fp,44($sp)
	sw	$28,40($sp)
	move	$fp,$sp
	sw	$4,56($fp)
	lw	$4,56($fp)
	li	$5,32			# 0x20
	la	$25,strchr
	jal	$31,$25
	sw	$2,24($fp)
	lw	$3,56($fp)
	lw	$2,24($fp)
	subu	$2,$3,$2
	bgez	$2,1f
	subu	$2,$0,$2
1:
	sw	$2,28($fp)
	lw	$2,28($fp)
	addu	$2,$2,1
	move	$4,$2
	la	$25,malloc
	jal	$31,$25
	sw	$2,32($fp)
	lw	$4,32($fp)
	lw	$5,56($fp)
	lw	$6,28($fp)
	la	$25,strncpy
	jal	$31,$25
	lw	$3,32($fp)
	lw	$2,28($fp)
	addu	$2,$3,$2
	sb	$0,0($2)
	lw	$2,32($fp)
	move	$sp,$fp
	lw	$31,48($sp)
	lw	$fp,44($sp)
	addu	$sp,$sp,56
	j	$31
	.end	extraerCampo2
	.size	extraerCampo2, .-extraerCampo2
	.align	2
	.globl	pasarAMayusculas2
	.ent	pasarAMayusculas2
pasarAMayusculas2:
	.frame	$fp,48,$31		# vars= 8, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$25
	.set	reorder
	subu	$sp,$sp,48
	.cprestore 16
	sw	$31,40($sp)
	sw	$fp,36($sp)
	sw	$28,32($sp)
	move	$fp,$sp
	sw	$4,48($fp)
	lw	$4,48($fp)
	la	$25,strlen
	jal	$31,$25
	sw	$2,28($fp)
	sw	$0,24($fp)
$L19:
	lw	$2,24($fp)
	lw	$3,28($fp)
	slt	$2,$2,$3
	bne	$2,$0,$L22
	b	$L20
$L22:
	lw	$3,48($fp)
	lw	$2,24($fp)
	addu	$4,$3,$2
	lw	$3,48($fp)
	lw	$2,24($fp)
	addu	$2,$3,$2
	lb	$2,0($2)
	sll	$3,$2,1
	lw	$2,_toupper_tab_
	addu	$2,$3,$2
	addu	$2,$2,2
	lbu	$2,0($2)
	sb	$2,0($4)
	lw	$2,24($fp)
	addu	$2,$2,1
	sw	$2,24($fp)
	b	$L19
$L20:
	lw	$2,48($fp)
	lw	$3,24($fp)
	addu	$2,$2,$3
	sb	$0,0($2)
	move	$sp,$fp
	lw	$31,40($sp)
	lw	$fp,36($sp)
	addu	$sp,$sp,48
	j	$31
	.end	pasarAMayusculas2
	.size	pasarAMayusculas2, .-pasarAMayusculas2
	.align	2
	.globl	mergeLines
	.ent	mergeLines
mergeLines:
	.frame	$fp,56,$31		# vars= 16, regs= 4/0, args= 16, extra= 8
	.mask	0xd0010000,-4
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$25
	.set	reorder
	subu	$sp,$sp,56
	.cprestore 16
	sw	$31,52($sp)
	sw	$fp,48($sp)
	sw	$28,44($sp)
	sw	$16,40($sp)
	move	$fp,$sp
	sw	$4,56($fp)
	sw	$5,60($fp)
	sw	$6,64($fp)
	sw	$0,24($fp)
	lw	$4,56($fp)
	la	$25,strlen
	jal	$31,$25
	move	$16,$2
	lw	$4,60($fp)
	la	$25,strlen
	jal	$31,$25
	addu	$16,$16,$2
	lw	$4,64($fp)
	la	$25,strlen
	jal	$31,$25
	subu	$3,$16,$2
	lw	$2,24($fp)
	addu	$2,$3,$2
	addu	$2,$2,1
	sw	$2,24($fp)
	lw	$4,24($fp)
	la	$25,malloc
	jal	$31,$25
	sw	$2,28($fp)
	lw	$2,28($fp)
	bne	$2,$0,$L24
	sw	$0,32($fp)
	b	$L23
$L24:
	lw	$4,28($fp)
	lw	$5,56($fp)
	la	$25,strcpy
	jal	$31,$25
	lw	$4,56($fp)
	la	$25,strlen
	jal	$31,$25
	move	$3,$2
	lw	$2,28($fp)
	addu	$16,$3,$2
	lw	$4,64($fp)
	la	$25,strlen
	jal	$31,$25
	move	$3,$2
	lw	$2,60($fp)
	addu	$2,$3,$2
	move	$4,$16
	move	$5,$2
	la	$25,strcat
	jal	$31,$25
	lw	$2,28($fp)
	sw	$2,32($fp)
$L23:
	lw	$2,32($fp)
	move	$sp,$fp
	lw	$31,52($sp)
	lw	$fp,48($sp)
	lw	$16,40($sp)
	addu	$sp,$sp,56
	j	$31
	.end	mergeLines
	.size	mergeLines, .-mergeLines
	.rdata
	.align	2
$LC0:
	.ascii	"Error: file pointer is null.\000"
	.align	2
$LC1:
	.ascii	"Error allocating memory for line buffer.\000"
	.align	2
$LC2:
	.ascii	"Error reallocating space for line buffer.\000"
	.text
	.align	2
	.globl	readLine
	.ent	readLine
readLine:
	.frame	$fp,64,$31		# vars= 24, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$25
	.set	reorder
	subu	$sp,$sp,64
	.cprestore 16
	sw	$31,56($sp)
	sw	$fp,52($sp)
	sw	$28,48($sp)
	move	$fp,$sp
	sw	$4,64($fp)
	lw	$2,64($fp)
	bne	$2,$0,$L26
	la	$4,$LC0
	la	$25,printf
	jal	$31,$25
	li	$4,1			# 0x1
	la	$25,exit
	jal	$31,$25
$L26:
	li	$2,64			# 0x40
	sw	$2,24($fp)
	lw	$4,24($fp)
	la	$25,malloc
	jal	$31,$25
	sw	$2,28($fp)
	lw	$2,28($fp)
	bne	$2,$0,$L27
	la	$4,$LC1
	la	$25,printf
	jal	$31,$25
	li	$4,1			# 0x1
	la	$25,exit
	jal	$31,$25
$L27:
	lw	$3,64($fp)
	lw	$2,64($fp)
	lw	$2,4($2)
	addu	$2,$2,-1
	sw	$2,4($3)
	bgez	$2,$L28
	lw	$4,64($fp)
	la	$25,__srget
	jal	$31,$25
	sb	$2,44($fp)
	b	$L29
$L28:
	lw	$2,64($fp)
	lw	$3,0($2)
	move	$4,$3
	lbu	$4,0($4)
	sb	$4,44($fp)
	addu	$3,$3,1
	sw	$3,0($2)
$L29:
	lbu	$2,44($fp)
	sb	$2,32($fp)
	sw	$0,36($fp)
$L30:
	lb	$3,32($fp)
	li	$2,10			# 0xa
	beq	$3,$2,$L31
	lb	$3,32($fp)
	li	$2,-1			# 0xffffffffffffffff
	bne	$3,$2,$L32
	b	$L31
$L32:
	lw	$3,36($fp)
	lw	$2,24($fp)
	bne	$3,$2,$L34
	lw	$2,24($fp)
	addu	$2,$2,64
	sw	$2,24($fp)
	lw	$4,28($fp)
	lw	$5,24($fp)
	la	$25,realloc
	jal	$31,$25
	sw	$2,28($fp)
	lw	$2,28($fp)
	bne	$2,$0,$L34
	la	$4,$LC2
	la	$25,printf
	jal	$31,$25
	li	$4,1			# 0x1
	la	$25,exit
	jal	$31,$25
$L34:
	lw	$3,28($fp)
	lw	$2,36($fp)
	addu	$3,$3,$2
	lbu	$2,32($fp)
	sb	$2,0($3)
	lw	$2,36($fp)
	addu	$2,$2,1
	sw	$2,36($fp)
	lw	$3,64($fp)
	lw	$2,64($fp)
	lw	$2,4($2)
	addu	$2,$2,-1
	sw	$2,4($3)
	bgez	$2,$L36
	lw	$4,64($fp)
	la	$25,__srget
	jal	$31,$25
	sb	$2,45($fp)
	b	$L37
$L36:
	lw	$2,64($fp)
	lw	$3,0($2)
	move	$4,$3
	lbu	$4,0($4)
	sb	$4,45($fp)
	addu	$3,$3,1
	sw	$3,0($2)
$L37:
	lbu	$2,45($fp)
	sb	$2,32($fp)
	b	$L30
$L31:
	lw	$2,36($fp)
	bne	$2,$0,$L38
	lw	$4,28($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,40($fp)
	b	$L25
$L38:
	lw	$3,28($fp)
	lw	$2,36($fp)
	addu	$2,$3,$2
	sb	$0,0($2)
	lw	$2,36($fp)
	addu	$2,$2,1
	lw	$4,28($fp)
	move	$5,$2
	la	$25,realloc
	jal	$31,$25
	sw	$2,28($fp)
	lw	$2,28($fp)
	sw	$2,40($fp)
$L25:
	lw	$2,40($fp)
	move	$sp,$fp
	lw	$31,56($sp)
	lw	$fp,52($sp)
	addu	$sp,$sp,64
	j	$31
	.end	readLine
	.size	readLine, .-readLine
	.rdata
	.align	2
$LC3:
	.ascii	"\000"
	.text
	.align	2
	.globl	merge
	.ent	merge
merge:
	.frame	$fp,88,$31		# vars= 48, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$25
	.set	reorder
	subu	$sp,$sp,88
	.cprestore 16
	sw	$31,80($sp)
	sw	$fp,76($sp)
	sw	$28,72($sp)
	move	$fp,$sp
	sw	$4,88($fp)
	sw	$5,92($fp)
	sw	$6,96($fp)
	sw	$0,24($fp)
	sw	$0,28($fp)
	sw	$0,32($fp)
	sw	$0,36($fp)
	sw	$0,40($fp)
	sw	$0,44($fp)
$L40:
	lw	$2,28($fp)
	beq	$2,$0,$L42
	lw	$2,36($fp)
	beq	$2,$0,$L42
	lw	$2,28($fp)
	beq	$2,$0,$L43
	lw	$4,28($fp)
	la	$5,$LC3
	la	$25,strcmp
	jal	$31,$25
	bne	$2,$0,$L43
	b	$L42
$L43:
	lw	$2,36($fp)
	beq	$2,$0,$L41
	lw	$4,36($fp)
	la	$5,$LC3
	la	$25,strcmp
	jal	$31,$25
	bne	$2,$0,$L41
$L42:
	addu	$2,$fp,48
	lw	$4,88($fp)
	move	$5,$2
	la	$25,fgetpos
	jal	$31,$25
	lw	$4,92($fp)
	la	$25,readLine
	jal	$31,$25
	sw	$2,28($fp)
	lw	$2,28($fp)
	beq	$2,$0,$L40
	lw	$4,28($fp)
	la	$25,extraerCampo2
	jal	$31,$25
	sw	$2,36($fp)
	lw	$2,96($fp)
	beq	$2,$0,$L40
	lw	$4,36($fp)
	la	$25,pasarAMayusculas2
	jal	$31,$25
	b	$L40
$L41:
	lw	$4,28($fp)
	la	$5,$LC3
	la	$25,strcmp
	jal	$31,$25
	beq	$2,$0,$L48
	lw	$4,36($fp)
	la	$5,$LC3
	la	$25,strcmp
	jal	$31,$25
	bne	$2,$0,$L47
$L48:
	move	$4,$0
	la	$25,exit
	jal	$31,$25
$L47:
	.set	noreorder
	nop
	.set	reorder
$L49:
	lw	$2,40($fp)
	beq	$2,$0,$L51
	b	$L50
$L51:
	lw	$2,24($fp)
	beq	$2,$0,$L52
	lw	$4,24($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,24($fp)
$L52:
	lw	$2,32($fp)
	beq	$2,$0,$L53
	lw	$4,32($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,32($fp)
$L53:
	lw	$4,88($fp)
	la	$25,readLine
	jal	$31,$25
	sw	$2,24($fp)
	lw	$2,24($fp)
	beq	$2,$0,$L54
	lw	$4,24($fp)
	la	$25,extraerCampo2
	jal	$31,$25
	sw	$2,32($fp)
	lw	$2,96($fp)
	beq	$2,$0,$L54
	lw	$4,32($fp)
	la	$25,pasarAMayusculas2
	jal	$31,$25
$L54:
	lw	$2,88($fp)
	lhu	$2,12($2)
	srl	$2,$2,5
	andi	$2,$2,0x1
	bne	$2,$0,$L56
	lw	$2,24($fp)
	beq	$2,$0,$L56
	lw	$2,32($fp)
	beq	$2,$0,$L56
	lw	$4,32($fp)
	la	$5,$LC3
	la	$25,strcmp
	jal	$31,$25
	beq	$2,$0,$L56
	sb	$0,56($fp)
	sb	$0,57($fp)
$L57:
	lw	$2,36($fp)
	beq	$2,$0,$L58
	lw	$4,32($fp)
	lw	$5,36($fp)
	la	$25,strcmp
	jal	$31,$25
	beq	$2,$0,$L58
	lw	$2,92($fp)
	lhu	$2,12($2)
	srl	$2,$2,5
	andi	$2,$2,0x1
	bne	$2,$0,$L58
	addu	$2,$fp,64
	lw	$4,92($fp)
	move	$5,$2
	la	$25,fgetpos
	jal	$31,$25
	li	$2,1			# 0x1
	sb	$2,57($fp)
	lw	$2,28($fp)
	beq	$2,$0,$L61
	lw	$4,28($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,28($fp)
$L61:
	lw	$2,36($fp)
	beq	$2,$0,$L62
	lw	$4,36($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,36($fp)
$L62:
	lw	$4,92($fp)
	la	$25,readLine
	jal	$31,$25
	sw	$2,28($fp)
	lw	$2,28($fp)
	beq	$2,$0,$L57
	lw	$4,28($fp)
	la	$25,extraerCampo2
	jal	$31,$25
	sw	$2,36($fp)
	lw	$2,96($fp)
	beq	$2,$0,$L57
	lw	$4,36($fp)
	la	$25,pasarAMayusculas2
	jal	$31,$25
	b	$L57
$L58:
	lw	$2,36($fp)
	beq	$2,$0,$L65
	lw	$4,32($fp)
	lw	$5,36($fp)
	la	$25,strcmp
	jal	$31,$25
	bne	$2,$0,$L65
	li	$2,1			# 0x1
	sb	$2,56($fp)
	lbu	$3,57($fp)
	li	$2,1			# 0x1
	bne	$3,$2,$L66
	lw	$2,64($fp)
	lw	$3,68($fp)
	sw	$2,48($fp)
	sw	$3,52($fp)
$L66:
	lw	$4,24($fp)
	lw	$5,28($fp)
	lw	$6,36($fp)
	la	$25,mergeLines
	jal	$31,$25
	sw	$2,44($fp)
	lw	$2,44($fp)
	beq	$2,$0,$L67
	lw	$4,44($fp)
	la	$25,puts
	jal	$31,$25
	lw	$4,44($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,44($fp)
	b	$L65
$L67:
	la	$4,$LC2
	la	$25,printf
	jal	$31,$25
	li	$4,1			# 0x1
	la	$25,exit
	jal	$31,$25
$L65:
	lbu	$2,56($fp)
	bne	$2,$0,$L49
	addu	$2,$fp,48
	lw	$4,92($fp)
	move	$5,$2
	la	$25,fsetpos
	jal	$31,$25
	lw	$2,28($fp)
	beq	$2,$0,$L70
	lw	$4,28($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,28($fp)
$L70:
	lw	$2,36($fp)
	beq	$2,$0,$L71
	lw	$4,36($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,36($fp)
$L71:
	lw	$4,92($fp)
	la	$25,readLine
	jal	$31,$25
	sw	$2,28($fp)
	lw	$2,28($fp)
	beq	$2,$0,$L49
	lw	$4,28($fp)
	la	$25,extraerCampo2
	jal	$31,$25
	sw	$2,36($fp)
	lw	$2,96($fp)
	beq	$2,$0,$L49
	lw	$4,36($fp)
	la	$25,pasarAMayusculas2
	jal	$31,$25
	b	$L49
$L56:
	li	$2,1			# 0x1
	sw	$2,40($fp)
	b	$L49
$L50:
	lw	$2,24($fp)
	beq	$2,$0,$L75
	lw	$4,24($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,24($fp)
$L75:
	lw	$2,28($fp)
	beq	$2,$0,$L76
	lw	$4,28($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,28($fp)
$L76:
	lw	$2,36($fp)
	beq	$2,$0,$L77
	lw	$4,36($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,36($fp)
$L77:
	lw	$2,32($fp)
	beq	$2,$0,$L78
	lw	$4,32($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,32($fp)
$L78:
	lw	$2,44($fp)
	beq	$2,$0,$L39
	lw	$4,44($fp)
	la	$25,free
	jal	$31,$25
	sw	$0,44($fp)
$L39:
	move	$sp,$fp
	lw	$31,80($sp)
	lw	$fp,76($sp)
	addu	$sp,$sp,88
	j	$31
	.end	merge
	.size	merge, .-merge
	.ident	"GCC: (GNU) 3.3.3 (NetBSD nb3 20040520)"
